﻿.mdEditor {
  position: relative;
  width: 100%;
  .editorNull {
    &.ThemeColor3:not(:hover) {
      color: #ccc!important;
    }
  }
  .BraftEditor-container {
    overflow: inherit;
  }
  .mdEditorContent {
    font-size: 13px;
    max-height: 600px;
    overflow: auto;
    word-break: break-all;
    > p {
      margin-bottom: 16px !important;
      &:last-child {
        margin-bottom: 0 !important;
      }
    }
    p {
      padding: 0;
      margin: 0;
      min-height: 20px;
      white-space: pre-wrap;
    }
    ul {
      list-style-type: disc;
      margin: 16px 0 16px 16px;
      font-size: 13px;
      li {
        list-style-position: outside;
        list-style: disc;
        line-height: normal;
      }
    }
    ol{
      margin: 16px 0 16px 16px;
      font-size: 13px;
      list-style-type: decimal;
      li {
        list-style-position: outside;
        list-style: decimal;
      }
    }
    hr {
      margin: 15px 0;
      height: 1px;
      border: none;
      background: rgba(0, 0, 0, 0.1);
    }
  }
  #editorFiles {
    visibility: hidden;
    position: absolute;
  }
  .BraftEditor-controlBar {
    > :nth-child(12),
    .link-editor-dropdown ~ .control-item,
    #editorFile,
    .braft-link-editor .switch-group {
      display: none;
    }
    .headings-dropdown {
      .menu-item {
        padding-top: 10px!important;
        padding-bottom: 10px!important;
      }
      .menu-item:nth-child(4),
      .menu-item:nth-child(5),
      .menu-item:nth-child(6) {
        display: none;
      }
    }
    .braft-color-switch-buttons {
      button {
        width: 50% !important;
        height: 30px !important;
      }
    }
  }
  .BraftEditor-content {
    font-size: 13px;
    min-height: 140px;
    max-height: 600px;
    color: #333;
    .public-DraftEditor-content {
      min-height: 140px;
    }
    div[data-block=true] {
      margin-bottom: 16px;
      &:last-child {
        margin-bottom: 0;
      }
    }
  }
  .mdEditorFooter {
    align-items: center;
    margin-top: 8px;
    padding-bottom: 16px;
    .mdEditorTipColor {
      color: #9e9e9e;
    }
    .mdEditorCancel {
      font-size: 13px;
      cursor: pointer;
      &:not(:hover) {
        color: #9e9e9e!important;
      }
    }
    .mdEditorSave {
      font-size: 13px;
      cursor: pointer;
      color: #fff;
      border-radius: 3px;
      margin-left: 32px;
      height: 32px;
      line-height: 32px;
      padding: 0 22px;
    }
  }
}
